EXECUTABLE = api_client

analyze-code:
	cargo clippy

format:
	cargo fmt

build:
	cargo build

run: analyze-code format
	cargo run

test: analyze-code format
	cargo test -- --test-threads=1 --nocapture

build-c:
	gcc --std=c11 c/api_client.c -o c/${EXECUTABLE}

run-c: build-c
	c/${EXECUTABLE}

clean:
	cargo clean
	rm -f c/${EXECUTABLE}
